package org.jsets.fastboot.dsc.model.entity;

import java.io.Serializable;
import org.javers.core.metamodel.annotation.Id;
import org.jsets.fastboot.database.DatabaseType;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

@Data
@ToString(callSuper = true)
@NoArgsConstructor
@TableName("sys_ds_config")
@ApiModel(description = "数据源配置")
public class DataSourceConfig implements Serializable{

	private static final long serialVersionUID = 1L;
	
	@Id
	@JsonSerialize(using = ToStringSerializer.class)
	@ApiModelProperty(value = "主键")
	private Long id;
	
	private String name;
	private DatabaseType driverType;
	private String url;
	private String username;
	private String password;
	private String remark;
}